﻿<Window x:Class="VKontakteClient.SettingsWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Настройки ВКлиента" Height="100" Width="300" ShowActivated="True" WindowStartupLocation="CenterOwner" WindowStyle="SingleBorderWindow">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <CheckBox Content="Обновлять периодически друзей" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center" IsChecked="{Binding UpdateFriendsRegular}" />
        <TextBlock Grid.Row="1" Grid.Column="0" Text="Время обновления:" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5" IsEnabled="{Binding UpdateFriendsRegular}"  />
        <StackPanel HorizontalAlignment="Stretch" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" Orientation="Horizontal" >
            <TextBox IsEnabled="{Binding UpdateFriendsRegular}" Text="{Binding UpdateFriendsInterval}" Width="100" VerticalAlignment="Center" />
            <TextBlock Text="минут" VerticalAlignment="Center"/> 
        </StackPanel>
    </Grid>
</Window>
